//操作数据库
const mongoose=require('mongoose');
const student=require('../dbs/mondules/student');
const db=require=require('../dbs/db');
//查询数据库中的所有李姓数据
async function findAll (){        
    db(async()=>{
            const result= await student.find({name:/^李/});
            console.log(result);
            return result;
            });;
}
(async ()=>{
    findAll()
})()

